const path = require('path');
const lowdb = require('lowdb');
const FileSync = require('lowdb/adapters/FileSync');

module.exports = {
  getDB(jsonFileName) {
    return lowdb(new FileSync(path.resolve('lowdb', jsonFileName)));
  },
};
